import React from "react";
import "./index.css";
export default class  extends React.Component{
    
    constructor(props){
        super();
        this.state={
            text:props.text
        }
    }
    UNSAFE_componentWillReceiveProps(props){
        this.setState({
            text:props.text
        })
    }
    render(){
        return(
        <span className="TimeTick">{this.state.text}</span>
        )
    }
}